//
//  MVList.m
//  22-QQ_MV_HomeWork
//
//  Created by 曹曹 on 16/8/15.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "MVList.h"
#import "Singers.h"

@implementation MVList
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"singers"]) {
        NSMutableArray<Singers *> *arr = [NSMutableArray array];
        NSArray *valueArr = value;
        for (NSDictionary *dic in valueArr) {
            Singers *single = [Singers modelWithDictionary:dic];
            [arr addObject:single];
        }
        _singers = arr;
    }
}
@end
